<?php

namespace app\index\controller;

use think\Controller;

class Index extends Controller
{


  public function index()
  {
    // 模板变量赋值
//    $this->assign('name', 'ThinkPHP');
//    $this->assign('email', 'thinkphp@qq.com');
    // 或者批量赋值
//    $this->assign([
//        'name' => 'ThinkPHP1222222222222',
//        'email' => 'thinkphp@qq.com'
//    ]);
    $data = [
        'name' => 111111
    ];

    // 模板输出
    //return $this->fetch('detail');
    return view('index', $data);
  }

}